<template>
  <div>
    <x-header>创建企业信息</x-header>

    <group title="项目基础信息" class="weui-cells_form">
      <cell title="从属企业" value="上海月亮科技有限公司"></cell>
      <x-input title="项目名称" name="email" placeholder="项目名称"></x-input>
      <x-input title="项目描述" name="password" placeholder="项目描述"></x-input>

      <!-- <x-input title="验证码" class="weui-cell_vcode">
        <img slot="right" class="weui-vcode-img" src="http://weui.github.io/weui/images/vcode.jpg">
      </x-input> -->
      <!-- <x-input title="验证码" class="weui-cell_vcode">
        <img slot="right" class="weui-vcode-img" src="http://weui.github.io/weui/images/vcode.jpg">
      </x-input> -->
      <!-- <x-input title="发送验证码" class="weui-vcode">
        <x-button slot="right" type="primary" mini>发送验证码</x-button>
      </x-input> -->
    </group>
    <box gap="10px 10px">
      <x-button type="primary" @click.native="onCreateClick">创建</x-button>
    </box>
  </div>
</template>
<script>
  import { Group, Cell ,XHeader, XInput, XButton, Box} from 'vux'

  export default {
    components: {
      Group,
      Cell,
      XHeader,
      XInput,
      XButton,
      Box
    },

    data () {
      return {
          info: ""
      }
    },

    methods: {
      onCreateClick() {
        this.$vux.toast.show({
          text: '创建成功'
        })
        this.$router.go(-1)
      }
    },

    mounted() {

    }
  }
</script>
